<template>
  <div>
    aa
  </div>
</template>

<script>
import http from "@/utils/http";
import Api from "@/utils/api";
export default {
  data() {
    return {
      catId: '', // 商品分类id
      goodsList: [], // 商品列表
    }
  },
  created() {
    this.init()
    this.queryGoodsList()
  },
  methods: {
    init() {
      this.catId = this.$route.query.catId;
    },
    queryGoodsList(params) { // 查询商品列表
      http.post(Api.queryGoodsList, params).then(res => {
        if(res.code == 200) {
          this.goodsList = res.data.rows;
          console.log(this.goodsList)
        } else {
          this.toast(res.message);
        }
      })
    },
  },
}
</script>

<style lang="less" scoped>

</style>

